<?php 
include "includes/session.php";
include "includes/comunes.php";


if($_POST['submit']){
$sql="UPDATE `novedades` SET `novTratado`=1 WHERE  `novId`=".$_POST['id'];
$res=cons_sql_up($sql);
//echo $sql;die();
header("Location: panel.php");
}else{
$tabla="novedades";
$condicion=" novId=".$_GET['ale'];
$orden="";
$res=cons_sql($tabla,$condicion,$orden);
$reg=mysql_fetch_array($res);}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sistema de Gestion de Vehiculos</title>

<link href="estilos.css" rel="stylesheet" type="text/css" />

<!--libreria jquery central-->
<script src="jquery-ui/js/jquery-1.9.1.js"></script>
<!--fin libreria central-->

<!--Librerias para el combo-->
<script language="JavaScript" type="text/javascript" src="combos/jquery.chainedSelects.js"></script>
<!--fin libreria-->

<!--librerias ui-->
<link href="jquery-ui/css/ui-lightness/jquery-ui-1.10.2.custom.css" rel="stylesheet"/>
<script src="jquery-ui/js/jquery-ui-1.10.2.custom.js"></script>
<!--fin libreria-->
<!--estilo para el scroll-->
<style>
  .ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
  }
  /* IE 6 doesn't support max-height
   * we use height instead, but this forces the menu to always be this tall
   */
  * html .ui-autocomplete {
    height: 300px;
  }
  </style>
<!--
  fin estilo scroll-->


<script language="JavaScript" type="text/javascript">
$(function()
{


//              funcion para validacion de formularios

             $("#altavehiculo").submit(function () {

                  if (confirm('Esta seguro que confirma el pedido?')){ 
					   return true;
					}else
					   return false;

             

});
</script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
</head>

<body>

<div class="container">
<?php include "includes/head.php"?>
   <div class="content">
       <div class="tituloprincipal">
          <?php include 'includes/submenu.php';?>  
           <img src="img/alerta.jpg" width="25" height="25" border="0"/> Tratar Alerta
           </div>
       <form id="pedido" name="pedido" method="POST" action="detalleAlerta.php">
       <div class="contenedorpedido">
          <div id="comprador">
           <fieldset>
              <legend><b>Informacion de Alerta</b></legend> 
               <table  width="100%">
                 <tr>
                      <td class="textotablamenuform">Fecha</td>
                      <td class="textotablamenuform">
                          <input type="text" class="campo_form"  value="<?php echo format_fec($reg['novFecha'],"/")?>"  disabled  style="width:15%;">
                    
                      </td>
                      
              
                 </tr>
                   <tr>
                      <td class="textotablamenuform">Autor</td>
                      <td class="textotablamenuform" colspan="5">
                           <input type="text" class="campo_form"  value="<?php echo $reg['novAutor']?>"  disabled style="width:80%;">
						 
                               
                      </td> 
                   </tr>
                   
                    <tr>
				 <td class="textotablamenuform">
				 Comentario
				 </td>
				 <td colspan="4">
				 <textarea name="comentario" rows="34" disabled cols="65" class="campo_form"><?php echo $reg['novComentario']?></textarea>
				 </td>
				 </tr>
				  <tr>
                      <td class="textotablamenuform">Marcar como tratada</td>
                      <td class="textotablamenuform" colspan="5">
                           <input type="checkbox" class="campo_form"  required name="tratada" value="1"  style="width:80%;">
						   <input type="hidden" class="campo_form"  name="id"   value="<?php echo $_GET['ale']?>"  style="width:80%;">
                               
                      </td> 
                   </tr>
                   
                   
               </table>    
           </fieldset>  
           </div>
           
        
           <fieldset style="text-align: right;">  
            <table style="text-align: right;">
             <tr>
                    <td class="textotablamenuform" style="text-align: right;" colspan="5">
                         <input type="reset" name="enviar" value="Limpiar"  class="boton_form"/>
                         <input name="submit" id="submit" type="submit" value="Cerrar Alerta" class="boton_form"/>
                     </td>
                 </tr>
                   </table>       
           </fieldset>  
           
           
           
       </div>
   </form>
       <div class="clear"></div>
   <br>
   </div>
  <?php include "includes/pie.php"?>
  
</div>
</body>
</html>
